package net.lahuobao.enums;

/**
 * Created by clark on 2016/8/31 0031.
 */
public enum  EFileType {
    JPG {
        @Override
        public String getTypeName() {
            return "image/jpeg";
        }


        @Override
        public String getExtension() {
            return ".jpg";
        }
    },
    PNG {
        @Override
        public String getTypeName() {
            return "image/png";
        }

        @Override
        public String getExtension() {
            return ".png";
        }
    },
    TXT {
        @Override
        public String getTypeName() {
            return "text/plain";
        }

        @Override
        public String getExtension() {
            return ".txt";
        }
    };

    public abstract String getTypeName();

    public abstract String getExtension();
}
